<%--
  Created by IntelliJ IDEA.
  User: 86135
  Date: 2021/5/13
  Time: 8:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    //获取项目的根路径
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script src="<%=basePath%>tushug/img/jquery-1.12.4.js"></script>
<html>
<head>
    <title>修改书籍信息</title>
    <style type="text/css">
        body{
            background-color: #eae9e9;
        }
        div{
            margin-left:650px;
        }
        .submit{
            margin-left:20px;
            background-color: orangered;
            width: 180px;
            height: 50px;
            font-size: 20px;
            color: white;
        }
        input{
            line-height:20px;
            margin-top: 30px;
            text-align:center;
        }
        select{
            line-height:20px;
            margin-top: 30px;
            text-align:center;
        }
    </style>
</head>
<body>

<div>
<form action="<%=basePath%>LibaryServlet?tps=update" method="post">
    书籍编号:<input type="text" name="bookId"  value="${fin[0]}" readonly><br>
    书籍名称:<input type="text" name="bookNames"  value="${fin[1]}"><br>
    书籍分类:<select name="types" class="typeName">
    <option value="${fin[2]}" selected>${fin[2]}</option>
    <option value="网络小说">网络小说</option>
    <option value="儿童益智">儿童益智</option>
    <option value="学习资料">学习资料</option>
    <option value="经典名著">经典名著</option>
</select><br>
    书籍作者:<input name="authors" type="text" required value="${fin[3]}"><br>
    书籍库存:<input type="text" name="sums" required value="${fin[4]}"><br>
    书籍价格:<input type="text" name="prices" required value="${fin[5]}"><br>
    书籍位置:<input type="text" name="locations" required value="${fin[6]}"><br>
    书籍来源:<input type="text" name="sources" required value="${fin[7]}"><br>
    入库时间:<input type="text" name="jdates" required value="${fin[8]}"><br>
    <input type="submit" name="xiugai" class="submit">
</form>
</div>
<script>
$(function (){
})
</script>
</body>
</html>
